package nancal.mp.service.sms


import nancal.mp.db.mongo.MobileCodeModuleEnum
import nbcp.base.comm.ApiResult

/**
 * @ClassName SmsStrategy
 * @author xuebin
 * @version 1.0.0
 * @Description 发短信策略
 * @createTime 2021年12月11日 16:03:00
 */
interface SmsStrategy {

    /**
     * 获取验证码
     */
    fun getSmsCode(productLineCode:String, module: MobileCodeModuleEnum, recvMobile: String): ApiResult<String>

    /**
     * 通用短信验证码
     */
    fun sendSmsCode(productLineCode:String, module: MobileCodeModuleEnum, recvMobile: String, code: String, lang: String = ""): ApiResult<String>

    /**
     * 发送短信通知
     */
    fun sendSmsNotification(productLineCode:String, module: MobileCodeModuleEnum, recvMobile: String, lang: String = "", params: List<String>): ApiResult<String>


}